#ifndef VLMAGICWANDCONTEXTWIDGET_H
#define VLMAGICWANDCONTEXTWIDGET_H

#include "vlcontextwidget.h"
#include <QCheckBox>
#include "ToolList.h"
#include "magicbrushtool.h"

class VLMagicWandContextWidget : public VLContextWidget
{
    Q_OBJECT
public:
    explicit VLMagicWandContextWidget(QWidget *parent = 0);
    
signals:
    
public slots:
    void setContiguous(bool b);
    void setRed(int val);
    void setGreen(int val);
    void setBlue(int val);
    void setAction(int val);

private:
    QHBoxLayout *layout;
    QLabel *nameLabel;

    QCheckBox *contiguousToggle;
    QSpinBox *redTol;
    QSpinBox *greenTol;
    QSpinBox *blueTol;
    QComboBox *actions;

    QCheckBox * createCheckBox(QHBoxLayout *tlayout, QString text) {
        QCheckBox *box = new QCheckBox(text);
        layout->addWidget(box);
        return box;
    }

    void setDefaults();

};

#endif // VLMAGICWANDCONTEXTWIDGET_H
